//
//  StatisticsManager.h
//  YJAPPThird
//
//  Created by 张吉旭 on 16/12/20.
//  Copyright © 2016年 yj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ThirdDefine.h"

@interface StatisticsManager : NSObject

+(StatisticsManager*)shareInstance;


//页面统计开始
-(void)beginLogPageView:(NSString *)pageName;
//页面统计结束
-(void)endLogPageView:(NSString *)pageName;
//加密
-(void)setEncryptEnabled:(BOOL)value;


//自定义事件,数量统计.
-(void)event:(NSString *)eventId; //等同于 event:eventId label:eventId;

-(void)event:(NSString *)eventId label:(NSString *)label; // label为nil或@""时，等同于 event:eventId label:eventId;

-(void)event:(NSString *)eventId attributes:(NSDictionary *)attributes;

//自定义事件，计算事件
-(void)event:(NSString *)eventId attributes:(NSDictionary *)attributes counter:(int)number;

/** active user sign-off.
 停止sign-in PUID的统计
 */
-(void)profileSignOff;

- (void)profileSignInWithPUID:(NSString *)puid;
- (void)profileSignInWithPUID:(NSString *)puid provider:(NSString *)provider;

@end
